package top.suven.base.http.admin.sec.service;

import top.suven.base.core.mybatis.PageData;
import top.suven.base.http.admin.sec.model.Menu;
import top.suven.base.http.admin.sec.vo.response.MenuResponseVo;

import java.util.List;

/**
 * @Title: MenuService.java
 * @Description: 菜单的业务处理服务类
 * @author lixiangling
 * @date   2018/08/13 16:58:49
 * @version  V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
public interface MenuService {
    /**
     * @Title: 获取菜单分页信息
     * @Description:
     * @param menu @{Link Menu}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:49
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public PageData<MenuResponseVo> getMenuPage(Menu menu, int start, int pageSize);
   /**
    * @Title: 获取菜单列表信息
    * @Description:
    * @param menu @{Link Menu}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:49
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public List<Menu> getMenuList(Menu menu);
    /**
     * @Title: 根据父菜单编号获取菜单数量
     * @Description:
     * @param parentMenuCode @{Link String}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:49
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public int getMenuCountByParentMenuCode(String parentMenuCode);
    /**
     * @Title: 新增菜单信息
     * @Description:
     * @param menu @{Link Menu}
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:49
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void addMenu(Menu menu);
    /**
    * @Title: 修改菜单信息
    * @Description:
    * @param menu @{Link Menu}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:49
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void updMenu(Menu menu);
   /**
    * @Title: 获取菜单信息
    * @Description:
    * @param id @{Link String}
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:49
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public Menu getMenu(String id);
    /**
     * @Title: 删除菜单信息
     * @Description:id @{Link String[]}
     * @param
     * @return
     * @throw
     * @author lixiangling
     * @date 2018/08/13 16:58:49
     *  --------------------------------------------------------
     *  modifyer    modifyTime                 comment
     *
     *  --------------------------------------------------------
     */
    public void del(String[] ids);
   /**
    * @Title: 启用菜单信息
    * @Description:id @{Link String[]}
    * @param
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:49
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void turnOn(String[] ids);
   /**
    * @Title: 禁用菜单信息
    * @Description:id @{Link String[]}
    * @param
    * @return
    * @throw
    * @author lixiangling
    * @date 2018/08/13 16:58:49
    *  --------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    *  --------------------------------------------------------
    */
    public void turnOff(String[] ids);
}